// 个人中心
const User = (resolve) => {
  import('src/user/index').then((module) => {
    resolve(module)
  })
}
// 1.个人中心头部
const Header = (resolve) => {
  import('src/header/header').then((module) => {
    resolve(module)
  })
}
// 2.个人中心头部2
const UserHeader = (resolve) => {
  import('src/header/user_header').then((module) => {
    resolve(module)
  })
}
// 2.我要培育
const Foster = (resolve) => {
  import('src/user/foster').then((module) => {
    resolve(module)
  })
}
// 2.我要培育 -- 查看更多
const FosterMore = (resolve) => {
  import('src/user/foster/foster_more').then((module) => {
    resolve(module)
  })
}
// 3.量碰管理
const AmountTouch = (resolve) => {
  import('src/user/amount_touch').then((module) => {
    resolve(module)
  })
}
// 3.量碰管理 --量碰规则
const TouchRule = (resolve) => {
  import('src/user/amount_touch/touch_rule').then((module) => {
    resolve(module)
  })
}
// 3.量碰管理 --量碰统计
const TouchTotal = (resolve) => {
  import('src/user/amount_touch/touch_total').then((module) => {
    resolve(module)
  })
}
// 3.量碰管理 --量碰详情
const TouchDetail = (resolve) => {
  import('src/user/amount_touch/touch_detail').then((module) => {
    resolve(module)
  })
}
// 4.我要推荐
const Recommand = (resolve) => {
  import('src/user/recommand').then((module) => {
    resolve(module)
  })
}
// 4.我要推荐--推荐统计
const RecTotal = (resolve) => {
  import('src/user/recommand/rec_total').then((module) => {
    resolve(module)
  })
}
// 4.我要推荐--活动规则
const RecRule = (resolve) => {
  import('src/user/recommand/rec_rule').then((module) => {
    resolve(module)
  })
}
// 4.我要推荐--推荐统计划分区
const RecRegion = (resolve) => {
  import('src/user/recommand/rec_region').then((module) => {
    resolve(module)
  })
}
const Test = (resolve) => {
  import('src/user/recommand/test').then((module) => {
    resolve(module)
  })
}
// 5.见点奖励
const SeePoint = (resolve) => {
  import('src/user/see_point').then((module) => {
    resolve(module)
  })
}
// 5.见点奖励 -- 规则说明
const SeePointRule = (resolve) => {
  import('src/user/see_point/see_point_rule').then((module) => {
    resolve(module)
  })
}

export default [
// 重定向
  {
    path: '/',
    redirect: '/user'
  },
  // 个人中心
  {
    path: '/user',
    meta: {title: '个人中心'},
    name: 'user',
    components: {
      header: UserHeader,
      content: User
    }
  },
  // 2.我要培育
  {
    path: '/foster',
    meta: {title: '我要培育'},
    name: 'foster',
    components: {
      header: Header,
      content: Foster
    }
  },
  // 2.我要培育--查看更多
  {
    path: '/foster_more',
    meta: {title: '培育统计'},
    name: 'foster_more',
    components: {
      header: Header,
      content: FosterMore
    }
  },
  // 3.量碰管理
  {
    path: '/amount_touch',
    meta: {title: '量碰管理'},
    name: 'amount_touch',
    components: {
      header: Header,
      content: AmountTouch
    }
  },
  // 3.量碰管理 --量碰规则
  {
    path: '/touch_rule',
    meta: {title: '量碰规则'},
    name: 'touch_rule',
    components: {
      header: Header,
      content: TouchRule
    }
  },
  // 3.量碰管理 --量碰统计
  {
    path: '/touch_total',
    meta: {title: '量碰统计'},
    name: 'touch_total',
    components: {
      header: Header,
      content: TouchTotal
    }
  },
  // 3.量碰管理 --量碰详情
  {
    path: '/touch_detail/:month',
    meta: {title: '量碰详情'},
    name: 'touch_detail',
    components: {
      header: Header,
      content: TouchDetail
    }
  },
  // 4.我要推荐
  {
    path: '/recommand',
    meta: {title: '我要推荐'},
    name: 'recommand',
    components: {
      // header: Header,
      content: Recommand
    }
  },
  // 4.我要推荐 --推荐统计
  {
    path: '/rec_total',
    meta: {title: '推荐统计'},
    name: 'rec_total',
    components: {
      // header: Header,
      content: RecTotal
    }
  },
  // 4.我要推荐 --推荐统计划分区块
  {
    path: '/rec_region',
    meta: {title: '推荐统计'},
    name: 'rec_region',
    components: {
      header: Header,
      content: RecRegion
    }
  },
  // 4.我要推荐 - 活动规则
  {
    path: '/rec_rule',
    meta: {title: '推荐规则'},
    name: 'rec_rule',
    components: {
      header: Header,
      content: RecRule
    }
  },
  // 4.我要推荐 - 活动规则
  {
    path: '/test',
    meta: {title: '推荐统计'},
    name: 'test',
    components: {
      header: Header,
      content: Test
    }
  },
  // 5.见点奖励
  {
    path: '/see_point',
    meta: {title: '建点奖励'},
    name: 'see_point',
    components: {
      header: Header,
      content: SeePoint
    }
  },
  // 5.见点奖励 --活动规则
  {
    path: '/see_point_rule',
    meta: {title: '建点规则'},
    name: 'see_point_rule',
    components: {
      header: Header,
      content: SeePointRule
    }
  }
  // see_point_rule
]
